package com.ruoyi.web.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.domain.dto.EnterpriseBindDto;
import com.ruoyi.web.service.ThirdPartyUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/thirdPartyUser")
@Api(tags = "第三方用户控制层")
public class ThirdPartyUserController {

    @Autowired
    private ThirdPartyUserService thirdPartyUserService;

    /**
     * 来源于爱山东、统一身份认证的个人用户
     */
    @ApiOperation("个人用户绑定企业")
    @PostMapping("individual/bindEnterprise")
    public AjaxResult bindEnterprise(@RequestBody EnterpriseBindDto dto) {
        return thirdPartyUserService.bindEnterprise(dto);
    }
}
